Skip to content

Use system line seperator for platform independence#16

Open
DDQuin wants to merge 1 commit intocodingminecraft:masterfrom
DDQuin:line-fix
Open

Use system line seperator for platform independence#16
DDQuin wants to merge 1 commit intocodingminecraft:masterfrom
DDQuin:line-fix

Conversation

@DDQuin
Copy link

@DDQuin DDQuin commented Nov 25, 2024

Mac uses "\n" and so does Unix while Windows uses "\r\n" for end of line. To make it work for all platforms System.lineSeparator() can be used which was introduced in Java 7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant